package com.lazily.exception_;


import java.io.FileInputStream;
import java.io.IOException;

/**
 * @Author:  GZQ
 * @date:  2025/2/22 22:07
 * @description: 演示异常 -- 数学运算异常
 */

public class Exception02 {
	// 程序入口
	public static void main(String[] args) {
	// 	Trowable
		try {
			FileInputStream fis;
			fis = new FileInputStream("d:\\a.jpg");
			int len;
			while ((len = fis.read()) != -1) {
				System.out.print(len);
			}
			fis.close();
		} catch (IOException e) {
			e.printStackTrace();
		}
	}
}
